package com.lin.controller;

import com.lin.service.DistrictService;
import com.lzl.responese.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * //TODO
 *
 * @author zhaolinlin
 * @description //TODO
 * @createTime 2022/8/25 11:54
 */
@RestController
public class DirDistrictController {
    @Autowired
    private DistrictService districtService;

    @GetMapping("/dir-district")
    public ResponseResult initDistrict(String keywords){
       return districtService.insertByDistrict(keywords);
    }
}
